/*
 * Copyright 2012-2015 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package sample.web.beetl;

import java.util.Date;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {


	@RequestMapping("/")
	public String index(Map<String, Object> model) {
		model.put("time", new Date());
		model.put("message", "Hello Spring Boot Beetl!");
		return "index";
	}
	
	@RequestMapping("/index")
	public String index2(Map<String, Object> model) {
		model.put("time", new Date());
		model.put("message", "Hello Spring Boot Beetl!");
		return "index";
	}
	
	@RequestMapping("/excel-input.html")
	public String excelInput(Map<String, Object> model) {		
		return "excel-input";
	}
	
	@RequestMapping("/welcome.html")
	public String welcome(Map<String, Object> model) {		
		return "welcome";
	}
	
	@RequestMapping("/member-list.html")
	public String memberList(){
		return "member-list";
	}
	
	@RequestMapping("/member-del.html")
	public String memberDel(){
		return "member-del";
	}
	
	@RequestMapping("/xxx.html")
	public String xxx() {
		return "xxx";
	}
	
	@RequestMapping("/xx.html")
	public String xx() {
		return "xx";
	}
	@RequestMapping("/order-list.html")
	public String orderList(){		
		return "order-list";
	}
	
	@RequestMapping("/cate.html")
	public String cate(){		
		return "cate";
	}
	@RequestMapping("/city.html")
	public String city() {
		return "city";
	}
	
	@RequestMapping("/admin-list.html")
	public String adminList(){
		return "admin-list";	
	}
	
	@RequestMapping("/admin-role.html")
	public String adminRole(){
		return "admin-role";	
	}
	
	@RequestMapping("/admin-cate.html")
	public String adminCate(){
		return "admin-cate";	
	}
	
	@RequestMapping("/admin-rule.html")
	public String adminRule(){
		return "admin-rule";	
	}
	
	@RequestMapping("/unicode.html")
	public String unicode(){
		return "unicode";	
	}
	
	@RequestMapping("/login.html")
	public String login(){
		return "login";	
	}
	
	@RequestMapping("/echarts1.html")
	public String echarts1(){
		return "echarts1";	
	}
	
	@RequestMapping("/echarts2.html")
	public String echarts2(){
		return "echarts2";	
	}
	
	
	
	
	@RequestMapping("/echarts3.html")
	public String echarts3(){
		return "echarts3";	
	}
	
	@RequestMapping("/echarts4.html")
	public String echarts4(){
		return "echarts4";	
	}
	@RequestMapping("/echarts5.html")
	public String echarts5(){
		return "echarts5";	
	}
	@RequestMapping("/echarts6.html")
	public String echarts6(){
		return "echarts6";	
	}
	@RequestMapping("/echarts7.html")
	public String echarts7(){
		return "echarts7";	
	}
	@RequestMapping("/echarts8.html")
	public String echarts8(){
		return "echarts8";	
	}
	
	
	@RequestMapping("/member-add.html")
	public String memberAdd(){
		return "member-add";	
	}
	
	@RequestMapping("/member-password.html")
	public String memberPassword(){
		return "member-password";	
	}
	
	@RequestMapping("/order-view.html")
	public String orderView(){
		return "order-view";	
	}
	
	
	@RequestMapping("//member-edit.html")
	public String memberEdit(){
		return "/member-edit";	
	}
	
	
	@RequestMapping("/admin-edit.html")
	public String adminEdit(){
		return "adminEdit";	
	}
	@RequestMapping("/error.html")
	public String error(){
		return "error";	
	}
	
	@RequestMapping("/role-add.html")
	public String roleAdd(){
		return "role-add";	
	}
	
	
	
	
	 
	 
		
}
